package cn.yza.设计模式.策略模式;

/**
 * @author Honglixi
 * @create 2022-01-09 21:35
 */
public class Client {
    public static void main(String[] args) {
        //选择并创建需要使用的策略对象
        MemberStrategy strategy = new AdvancedMemberStrategy();
        //创建环境
        Price price = new Price(strategy);
        //计算价格
        double quote = price.quote(300);
        System.out.println("价格为：" + quote);

    }
}
